<?php
include("../myzhuaqu.php");
require_once('../vendor/autoload.php');
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\WebDriverExpectedCondition;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\WebDriverBy;
use Facebook\WebDriver\WebDriverWait;

if($_REQUEST['type']=="classspan") {
    $cateforyarr=categorytrees($_REQUEST["q"]);
    $cateforyarr2=categorytrees($_REQUEST["q"],2);
    $cateforyarr3=categorytrees($_REQUEST["q"],3);
    $cateforyarr4=categorytrees($_REQUEST["q"],4);
    $data['cateforyarr']=$cateforyarr;
    $data['cateforyarr2']=$cateforyarr2;
    $data['cateforyarr3']=$cateforyarr3;
    $data['cateforyarr4']=$cateforyarr4;
    echo json_encode($data);
    exit;
}

